﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace Wangzeran.CodeMaker.Core.DB
{
    /// <summary>
    /// 数据库连接信息
    /// </summary>
    public interface IDBUtility
    {
        /// <summary>
        /// 获取连接字符串
        /// </summary>
        string ConnectionString
        {
            set;
            get;
        }


        /// <summary>
        /// 获取连接
        /// </summary>
        DbConnection GetConnection();


        /// <summary>
        /// 关闭连接
        /// </summary>
        void CloseConnection();
    }
}
